﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Group/1/ManagePage.Master"
    Inherits="System.Web.Mvc.ViewPage<PagingDto>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
    <% Html.RenderAction("Top", "Group", new { code = ViewData["Code"] }); %>
    <div class="main_wrapper clear">
        <div class="main">
            <div class="filter_bar">
                <div class="filter">
                    <span>全部</span> - <a href="#">话题</a> - <a href="#">问答</a> <i class="pipe">|</i>
                    排序：<span>最新回应</span> - <a href="#">最新发表</a> - <a href="#">最多回应</a></div>
                <div class="search">
                    <input name="" type="text" class="txt" /><input name="" type="button" value="搜索"
                        class="btn" /></div>
            </div>
            <div class="topic_list">
                <ul>
                    <% foreach (GroupTopicDto topic in Model)
                       { %>
                    <li>
                        <div class="num">
                            <i class="icon"></i>36</div>
                        <div class="detail">
                            <div class="topic_title">
                                <i class="icon subject"></i><a href="#">
                                    <%= topic.GtTitle %></a><i class="icon top"></i></div>
                            <div class="intro">
                                <%= Common.HtmlFilter.FilterHtml(topic.details[0].TdContent) %>
                            </div>
                        </div>
                        <div class="state">
                            <div class="author">
                                <div class="name">
                                    <i class="icon"></i><a href="#">
                                        <%= topic.SponsorDto.UserName %></a></div>
                                <div class="time">
                                    <% var t = DateTime.Now - topic.GtTime; %>
                                    <% if (t.TotalHours > 24)
                                       { %>
                                    <%= t.TotalDays.ToString("0") %>天前
                                    <% }
                                       else if (t.TotalHours < 1)
                                       { %>
                                    <%= t.TotalMinutes.ToString("0")%>分钟前
                                    <% }
                                       else
                                       { %>
                                    <%= t.TotalHours.ToString("0")%>小时前
                                    <% } %>
                                </div>
                            </div>
                            <div class="replyer">
                                <div class="name">
                                    <i class="icon"></i><a href="#">这货真不是师傅</a></div>
                                <div class="time">
                                    3分钟前</div>
                            </div>
                        </div>
                    </li>
                    <% } %>
                </ul>
                <div class="pages">
                    <a href="#">上一页</a><span class="current">1</span><a href="#">2</a><a href="#">3</a><a
                        href="#">4</a><a href="#">5</a><span>...</span><a href="#">19</a><a href="#">下一页</a></div>
            </div>
            <% using (Html.BeginForm("SaveTopics", "Topics"))
               { %>
            <div class="post_topic">
                <a name="post_new_topic"></a>
                <div class="title yahei">
                    <h2>
                        创建新讨论</h2>
                </div>
                <div class="post_topic_form">
                    <div class="item">
                        <span></span>
                        <p>
                            <input type="radio" class="ck" checked="checked" value="boy" name="sex">
                            话题</p>
                        <p>
                            <input type="radio" class="ck" value="girl" name="sex">
                            提问</p>
                    </div>
                    <div class="item name_item">
                        <span>标题：</span><input name="Title" type="text" class="txt" />
                        <%= Html.Hidden("GroupId", Convert.ToInt32(ViewData["GroupId"]))%>
                        <%= Html.Hidden("UserId", Convert.ToInt32(ViewData["UserId"]))%>
                    </div>
                    <div class="item editer_item">
                        <span>内容：</span>
                        <textarea name="Content" id="Content"></textarea>
                        <script type="text/javascript">
                            var fckContent = new FCKeditor('Content');
                            fckContent.Height = 230;
                            fckContent.Width = 575;
                            fckContent.ReplaceTextarea();
                        </script>
                    </div>
                    <div class="item btn_item">
                        <span></span>
                        <input name="" type="submit" value="发表" class="btn yahei" /></div>
                </div>
            </div>
            <% } %>
        </div>
        <div class="side">
            <div class="creat_link yahei">
                <a href="#post_new_topic">+创建新讨论</a></div>
            <ul class="my_topic">
                <li><a href="#">我发起的讨论</a></li>
                <li class="end"><a href="#">我回应的讨论</a></li>
            </ul>
            <div class="hot_topic hot_ask">
                <div class="title yahei">
                    <h2>
                        精彩问答</h2>
                </div>
                <ul class="hot_topic_list">
                    <li><span class="num">130</span><a href="#">我比刘翔跑得快怎么办</a></li>
                    <li><span class="num">114</span><a href="#">急求李德印、应美凤等太极拳、剑带口令音</a></li>
                    <li><span class="num">103</span><a href="#">请教这辆山地车的前轮如何拆下来?</a></li>
                    <li><span class="num">96</span><a href="#">求一套时尚健身舞！！简单易学大方的</a></li>
                    <li><span class="num">80</span><a href="#">谁帮我介绍类似几个俯卧撑之类的单体运动方法</a></li>
                    <li><span class="num">77</span><a href="#">在家怎么练腹肌和肱二头肌和肱三头肌</a></li>
                    <li><span class="num">63</span><a href="#">请问腹肌如何锻炼？看见很多人不练就有腹肌</a></li>
                    <li><span class="num">69</span><a href="#">渔具分线器 这个东西听渔具店里的老板</a></li>
                    <li><span class="num">40</span><a href="#">滑板派对方向键移位怎么办</a></li>
                </ul>
            </div>
            <div class="hot_topic hot_subject">
                <div class="title yahei">
                    <h2>
                        热门话题</h2>
                </div>
                <ul class="hot_topic_list">
                    <li><span class="num">20</span><a href="#">魔声金涡轮、铜涡轮真假辨别要点！！！</a></li>
                    <li><span class="num">16</span><a href="#">有人知道视频-詹皇vs骑士30+5实录</a></li>
                    <li><span class="num">54</span><a href="#">金沙体育哪个信用最好?</a></li>
                    <li><span class="num">32</span><a href="#">能发我海绵宝宝滑冰之旅的地图嘛。</a></li>
                    <li><span class="num">87</span><a href="#">听说国踏的鞋子脚感不错，刚好想买鞋</a></li>
                    <li><span class="num">5</span><a href="#">如何挑战人脑极限</a></li>
                    <li><span class="num">19</span><a href="#">NBA盘口哪里投注比较好</a></li>
                    <li><span class="num">33</span><a href="#">西甲足球代理网址</a></li>
                    <li><span class="num">21</span><a href="#">车神、誓死捍卫海滨发夹早日霸主车队</a></li>
                </ul>
            </div>
            <div class="group_member">
                <div class="title yahei">
                    <h2>
                        活跃会员</h2>
                </div>
                <div class="group_member_box">
                    <ul>
                        <li>
                            <div class="face">
                                <a href="#">
                                    <img src="/Content/del/face60_01.jpg" width="50" height="50" /></a></div>
                            <div class="detail">
                                <div class="name">
                                    <a href="#">林可儿</a> 25岁 单身</div>
                                <div class="likes">
                                    发帖 12 / 回应 65</div>
                            </div>
                        </li>
                        <li>
                            <div class="face">
                                <a href="#">
                                    <img src="/Content/del/face60_02.jpg" width="50" height="50" /></a></div>
                            <div class="detail">
                                <div class="name">
                                    <a href="#">朱敏</a> 26岁 单身</div>
                                <div class="likes">
                                    发帖 12 / 回应 65</div>
                            </div>
                        </li>
                        <li>
                            <div class="face">
                                <a href="#">
                                    <img src="/Content/del/face60_03.jpg" width="50" height="50" /></a></div>
                            <div class="detail">
                                <div class="name">
                                    <a href="#">猛男ONE</a> 28岁 单身</div>
                                <div class="likes">
                                    发帖 12 / 回应 65</div>
                            </div>
                        </li>
                        <li>
                            <div class="face">
                                <a href="#">
                                    <img src="/Content/del/face60_04.jpg" width="50" height="50" /></a></div>
                            <div class="detail">
                                <div class="name">
                                    <a href="#">水玲珑</a> 29岁 单身</div>
                                <div class="likes">
                                    发帖 12 / 回应 65</div>
                            </div>
                        </li>
                        <li>
                            <div class="face">
                                <a href="#">
                                    <img src="/Content/del/face60_05.jpg" width="50" height="50" /></a></div>
                            <div class="detail">
                                <div class="name">
                                    <a href="#">爱爱爱不完</a> 23岁 单身</div>
                                <div class="likes">
                                    发帖 12 / 回应 65</div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
